package com.lingnan.tijian.controller;

import com.lingnan.tijian.domain.Orders;
import com.lingnan.tijian.dto.ApiResponse;
import com.lingnan.tijian.service.ifac.ReportService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ReportController {
    @Autowired
    ReportService reportService;

    @RequestMapping("listReport")
    public ApiResponse listReport(@RequestBody Orders orders){
        return reportService.listReportByOrderId(orders);
    }
}
